import { indexStore } from './store'
import router from './router'
import NProgress from 'nprogress' // progress bar
import 'nprogress/nprogress.css' // progress bar style

NProgress.configure({ showSpinner: false }) // NProgress Configuration
localStorage.setItem('ciot_target', 'admin')
const locationHost: string = location.origin

router.beforeEach(async (to, from, next) => {
  next()
  NProgress.start()
  /* console.log(router) */
  NProgress.done()
})